import request from '@/utils/request'

export function creatTag(data) {
  return request({
    url: '/juanbusiness/content-tag/add',
    method: 'post',
    data
  })
}

export function findTag(data) {
  return request({
    url: '/juanbusiness/content-tag/findPage',
    method: 'get',
    params: data
  })
}

export function updateTag(data) {
  return request({
    url: '/juanbusiness/content-tag/edit',
    method: 'put',
    data
  })
}

export function releaseTag(data) {
  return request({
    url: '/juanbusiness/content-tag/enable',
    method: 'put',
    data
  })
}

export function delTag(id) {
  return request({
    url: '/juanbusiness/content-tag/del',
    method: 'delete',
    params: id
  })
}
